from rest_framework import serializers
from article.models import Article
from serializers.usersimpleserializers import UserSimpleSeialiser

#个人中心简单版Article序列化器
class ArticleSimpleSerializerView(serializers.ModelSerializer):

    # collected_users=serializers.PrimaryKeyRelatedField(many=True, queryset=User.objects.all())
    user = UserSimpleSeialiser()

    class Meta:

        model=Article
        fields ='__all__'




